<template>
  <div>
    <div class="top">
      <p @click="changeurl">退出</p>
    </div>
    <div class="bottom">
      <lefts class="left"></lefts>
      <div class="right">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script>
import lefts from './views/left.vue'
export default {
  components:{
    lefts
  },
  methods:{
    changeurl(){
      this.$store.commit('changestate',0)
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="scss">
*{
  margin: 0;
  padding: 0;
  font-family: '隶书';
}
.top{
  width: 100%;
  height: 60px;
  background-color: #333;
  p{
    font-size: 30px;
    color: white;
    line-height: 60px;
    text-align: right;
    margin-right: 40px;
  }
}
.bottom{
  width: 100%;
  display: flex;
  .left{
    width: 12%;
    height: calc(100vh - 60px);
    background-color: #3333;
  }
  .right{
    width: 88%;
    height: calc(100vh - 60px);
  }
}
</style>
